package com.ruoyi.web.exams.domain;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 试卷对象 exam_pager
 *
 * @author 范书铭
 * @date 2024-10-02
 */
@ApiModel(value =  "试卷",description = "")
@TableName(resultMap = "com.ruoyi.web.exams.mapper.ExamPagerMapper.ExamPagerResult")
@Data
@EqualsAndHashCode(callSuper = true)
public class ExamPager extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 试卷名 */
    @ApiModelProperty(name = "试卷名",notes = "")
    @Excel(name = "试卷名")
    private String pagerName;

    /** 描述 */
    private String description;

    /** 试卷类型(分规定练习、专项练习、模拟考试练习两种) */
    @ApiModelProperty(name = "试卷类型(分规定练习、专项练习、模拟考试练习两种)",notes = "")
    @Excel(name = "试卷类型(分规定练习、专项练习、模拟考试练习两种)")
    private Long pagerType;

    /** 试卷设计分值(模拟考试用) */
    @ApiModelProperty(name = "试卷设计分值(模拟考试用)",notes = "")
    @Excel(name = "试卷设计分值(模拟考试用)")
    private Integer pagerScore;

    /** 总题目数量 */
    @ApiModelProperty(name = "总题目数量",notes = "")
    @Excel(name = "总题目数量")
    private Integer totalQuestions;

    /** 单选题数量 */
    @ApiModelProperty(name = "单选题数量",notes = "")
    @Excel(name = "单选题数量")
    private Integer singleQuestionNumber;

    /** 多选题数量 */
    @ApiModelProperty(name = "多选题数量",notes = "")
    @Excel(name = "多选题数量")
    private Integer multiQuestionNumber;

    /** 判断题数量 */
    @ApiModelProperty(name = "判断题数量",notes = "")
    @Excel(name = "判断题数量")
    private Integer judgeQuestionNumber;

    /** 单选题分值 */
    @ApiModelProperty(name = "单选题分值",notes = "")
    @Excel(name = "单选题分值")
    private BigDecimal singleQuestionScore;

    /** 多选题分值 */
    @ApiModelProperty(name = "多选题分值",notes = "")
    @Excel(name = "多选题分值")
    private BigDecimal multiQuestionScore;

    /** 判断题分值 */
    @ApiModelProperty(name = "判断题分值",notes = "")
    @Excel(name = "判断题分值")
    private BigDecimal judgeQuestionScore;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("pagerName", getPagerName())
                .append("description", getDescription())
                .append("pagerType", getPagerType())
                .append("pagerScore", getPagerScore())
                .append("totalQuestions", getTotalQuestions())
                .append("singleQuestionNumber", getSingleQuestionNumber())
                .append("multiQuestionNumber", getMultiQuestionNumber())
                .append("judgeQuestionNumber", getJudgeQuestionNumber())
                .append("singleQuestionScore", getSingleQuestionScore())
                .append("multiQuestionScore", getMultiQuestionScore())
                .append("judgeQuestionScore", getJudgeQuestionScore())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}